package com.kedacom.general.result;

import lombok.Data;

import java.io.Serializable;

@Data
public class ResponseMessage<T> implements Serializable {
    /**
     * 检测结果
     */
    protected String message;

    protected T result;

    /**
     * 状态码
     */
    protected int status;

    /**
     * 返回code. 检测结果为通过时请固定传 "0"
     */
    protected String code;

    public ResponseMessage() {
    }

    public ResponseMessage(String message, T result, int status, String code) {
        this.message = message;
        this.result = result;
        this.status = status;
        this.code = code;
    }
}
